<style tyle="text/css">
    .modal-lg {
      width: 50%;
    }
</style>
<div class="modal-header">
  <h4 class="modal-title">{{flag ? '预存余额' : '信用额度'}}</h4>
</div>
<div class="modal-body">
  
  <form name="form" class="form-horizontal">
    <div class="form-group">
      <h4 class="col-lg-4 control-label">{{flag ? ( '预存余额'  ) : '原信用额度'}}：</h4>
      <h4 class="col-lg-4 form-control-static"><b>{{(price || 0) | currency : '¥'}}</b></h4>
    </div>
    <div class="line b-b line-lg"></div>
    <div class="form-group">
      <label class="col-lg-4 control-label">{{flag ? '充值金额' : '信用额度调整为'}}：</label>
      <div class="col-lg-5">
        <div class="input-group">
          <input type="number" class="form-control" placeholder="0.00" ng-model="detail.price">
          <span class="input-group-addon">元</span>
        </div>
      </div>
    </div>
    <div class="form-group" ng-if="flag">
      <label class="col-lg-4 control-label">备注：</label>
      <div class="col-lg-5">
        <textarea class="form-control" rows="3" ng-model="detail.save_name" placeholder="限100字以内..."></textarea>
      </div>
    </div>
    <div class="form-group" ng-if="!flag">
      <span class="col-lg-6 col-lg-offset-3 form-control-static">
        <i style="color: red">提示: 企业可用余额为账户余额与信用额度的总和</i>
      </span>
    </div>
    <div class="form-group" ng-if="flag">
      <span class="col-lg-10 col-lg-offset-2 form-control-static">
        <i style="color: red">提示: 想减少预存余额时，可充值负数，但可用余额小于0时，不能充值负数。</i>
      </span>
    </div>
  </form>
  
</div>
  
<div class="modal-footer">
  <button class="btn btn-success" type="button" ng-click="save()">确定</button>
  <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>
  